//
// Created by 11510 on 2024/6/8.
//
#include <string.h>
#include <unistd.h>
#include <iostream>
#include <fstream>
#include <sstream>
using std::cin;
using std::cerr;
using std::cout;
using std::endl;
using std::ifstream;
using std::ofstream;
using std::string;
using std::istringstream;


void test0(){
    // const char * filename = "res.txt";
    string filename("123 456");
    int num1 = 0, num2 = 0;
    istringstream iss(filename);

    iss >> num1 >> num2;
    std::cout << num1 << std::endl;
    std::cout << num2 << std::endl;

}




int main() {
    test0();
    return 0;
}